package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserResumeBigMapper;
import com.ruoyi.system.domain.SysUserResumeBig;
import com.ruoyi.system.service.ISysUserResumeBigService;
import com.ruoyi.common.core.text.Convert;

/**
 * 简历拆分2表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-29
 */
@Service
public class SysUserResumeBigServiceImpl implements ISysUserResumeBigService 
{
    @Autowired
    private SysUserResumeBigMapper sysUserResumeBigMapper;

    /**
     * 查询简历拆分2表
     * 
     * @param id 简历拆分2表主键
     * @return 简历拆分2表
     */
    @Override
    public SysUserResumeBig selectSysUserResumeBigById(String id)
    {
        return sysUserResumeBigMapper.selectSysUserResumeBigById(id);
    }

    /**
     * 查询简历拆分2表列表
     * 
     * @param sysUserResumeBig 简历拆分2表
     * @return 简历拆分2表
     */
    @Override
    public List<SysUserResumeBig> selectSysUserResumeBigList(SysUserResumeBig sysUserResumeBig)
    {
        return sysUserResumeBigMapper.selectSysUserResumeBigList(sysUserResumeBig);
    }

    /**
     * 新增简历拆分2表
     * 
     * @param sysUserResumeBig 简历拆分2表
     * @return 结果
     */
    @Override
    public int insertSysUserResumeBig(SysUserResumeBig sysUserResumeBig)
    {
        sysUserResumeBig.setCreateTime(DateUtils.getNowDate());
        return sysUserResumeBigMapper.insertSysUserResumeBig(sysUserResumeBig);
    }

    /**
     * 修改简历拆分2表
     * 
     * @param sysUserResumeBig 简历拆分2表
     * @return 结果
     */
    @Override
    public int updateSysUserResumeBig(SysUserResumeBig sysUserResumeBig)
    {
        sysUserResumeBig.setUpdateTime(DateUtils.getNowDate());
        return sysUserResumeBigMapper.updateSysUserResumeBig(sysUserResumeBig);
    }

    /**
     * 批量删除简历拆分2表
     * 
     * @param ids 需要删除的简历拆分2表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserResumeBigByIds(String ids)
    {
        return sysUserResumeBigMapper.deleteSysUserResumeBigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除简历拆分2表信息
     * 
     * @param id 简历拆分2表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserResumeBigById(String id)
    {
        return sysUserResumeBigMapper.deleteSysUserResumeBigById(id);
    }
}
